home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / ACGIFREE.ZIP / SAMPLES / HTML_EX.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-17  |  769 b   |  31 lines

  1. #define _DEBUG_DUMP_  //a_Comment this out to suppress debugging output
  2.  
  3. #include "a_acgi.h"
  4.  
  5. int main()
  6. {
  7.   //a_First allocate the HTML object
  8.   AHTML htmlOut;
  9.  
  10.   htmlOut.mimeHTML();         //a_Let the browser know that HTML will follow
  11.  
  12.   //a_Start our HTML page
  13.   htmlOut.htmlStartHTML();
  14.  
  15.   //a_Now we do the HEAD and TITLE
  16.   htmlOut.htmlDoHEAD("This is a sample ACGI++ example.");
  17.  
  18.   //a_Here we start the BODY of our page
  19.   htmlOut.htmlStartBODY();
  20.  
  21.   //a_This is the content of the page
  22.   htmlOut.htmlDoTagEx("H1", "ALIGN=CENTER", "This is my sample page...");
  23.  
  24.   //a_You add stuff here...
  25.   
  26.   //a_End our BODY and HTML page
  27.   htmlOut.htmlEndBODY();
  28.   htmlOut.htmlEndHTML();
  29.  
  30.   return 0x1;                   //a_Return something
  31. }